<?php
if(!defined('ADMINPX') || !defined('ADMIN')) {
	exit('Access Denied');
}
$act=$_GET['act'];
if($act=='ok'){
   if(!$_POST[adminpost]){
	   echo"提交出错<br/>";
   }else{
	   Bingz_config('forum_config_datags',$_POST['forum_config_datags'],'post');
	   Bingz_config('forum_config_hchtmk',$_POST['forum_config_hchtmk'],'post');
	   Bingz_config('forum_config_fjb',$_POST['forum_config_fjb'],'post');
	   Bingz_config('forum_config_fjy',$_POST['forum_config_fjy'],'post');
	   Bingz_config('forum_config_hjb',$_POST['forum_config_hjb'],'post');
	   Bingz_config('forum_config_hjy',$_POST['forum_config_hjy'],'post');

	   Bingz_config('forum_config_htz',$_POST['forum_config_htz'],'post');
	   Bingz_config('forum_config_ftz',$_POST['forum_config_ftz'],'post');
	   Bingz_config('forum_config_suanx',$_POST['forum_config_suanx'],'post');

	   Bingz_config('forum_config_ftjg',$_POST['forum_config_ftjg'],'post');
	   Bingz_config('forum_config_hfjg',$_POST['forum_config_hfjg'],'post');
     echo"提交成功<br/>";
	 }
   echo "正在自动返回.......<br/><a href=\"admin.php?action=forum_config\">请手动返回</a><br/><meta http-equiv=refresh content='3;url=admin.php?action=forum_config'>";
}else{
$forum_config_fjb=Bingz_config('forum_config_fjb');
$forum_config_fjy=Bingz_config('forum_config_fjy');
$forum_config_hjb=Bingz_config('forum_config_hjb');
$forum_config_hjy=Bingz_config('forum_config_hjy');

$forum_config_ftjg=Bingz_config('forum_config_ftjg');
$forum_config_hfjg=Bingz_config('forum_config_hfjg');
$forum_config_datags=Bingz_config('forum_config_datags');

if(Bingz_config('forum_config_hchtmk') == '1'){$forum_config_hchtmk='CHECKED';}else{$forum_config_hchtmka='CHECKED';}
if(Bingz_config('forum_config_ftz') == '1'){$forum_config_ftz='CHECKED';}else{$forum_config_ftza='CHECKED';}
if(Bingz_config('forum_config_htz') == '1'){$forum_config_htz='CHECKED';}else{$forum_config_htza='CHECKED';}
if(Bingz_config('forum_config_suanx') == '1'){$forum_config_suanx='CHECKED';}else{$forum_config_suanxa='CHECKED';}

echo <<<end
<div class="admin">==论坛配置==<br/></div>
	<form  method="post" action="admin.php?action=forum_config&act=ok">
帖子缓存设置: 
<input type="radio" $forum_config_hchtmk name="forum_config_hchtmk" value="1" />开启
<input type="radio" $forum_config_hchtmka name="forum_config_hchtmk" value="0" />关闭<br/>
发帖奖励金币:<input  class="text" type="text" name="forum_config_fjb" value="$forum_config_fjb"/><br/>
发帖奖励积分:<input  class="text" type="text" name="forum_config_fjy" value="$forum_config_fjy"/><br/>
发帖奖励通知: 
<input type="radio" $forum_config_ftz name="forum_config_ftz" value="1" />开启
<input type="radio" $forum_config_ftza name="forum_config_ftz" value="0" />关闭<br/>
回复奖励金币:<input  class="text" type="text" name="forum_config_hjb" value="$forum_config_hjb"/><br/>
回复奖励积分:<input  class="text" type="text" name="forum_config_hjy" value="$forum_config_hjy"/><br/>
回复奖励通知: 
<input type="radio" $forum_config_htz name="forum_config_htz" value="1" />开启
<input type="radio" $forum_config_htza name="forum_config_htz" value="0" />关闭<br/>
回复排序模式: 
<input type="radio" $forum_config_suanx name="forum_config_suanx" value="1" />顺序
<input type="radio" $forum_config_suanxa name="forum_config_suanx" value="0" />到序<br/>
附件临时文件个数:<input  class="text" type="text" name="forum_config_datags" value="$forum_config_datags"/>秒<br/>
发帖间隔:<input  class="text" type="text" name="forum_config_ftjg" value="$forum_config_ftjg"/>秒<br/>
回复间隔:<input  class="text" type="text" name="forum_config_hfjg" value="$forum_config_hfjg"/>秒<br/>
	<input class="submit" type="submit" name="adminpost" value="提交修改" />
	<br/>
end;
}
?>